FROM node:20
RUN apt-get install -y git
RUN git clone https://gitee.com/sj112538/vue-blog.git
WORKDIR /vue-blog
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install
RUN npm run build
EXPOSE 8080
CMD ["npm", "run", "prod"]
